package com.uwantsoft.interfaces.web.controller.validator;

import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author LeiPeichen.
 */
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = UniqueLicensePlateValidator.class)
public @interface UniqueLicensePlate {
    String message() default "你输入的车牌已经存在";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
    String filed() default "";
}
